<template>
  <div class="point-item" @click="navigateEvent">
    <div class="cover" :style="{backgroundImage:`url(${point.mainImageUrl})`}" ></div>
    <div class="content-box">
      <div class="title-box">
        <div class="title">{{point.name}}</div>
      </div>
      <div class="address">地址：{{point.address}}</div>
      <div class="time">{{point.orderTime}}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    point: {
      required: true,
      type: Object
    }
  },
  methods: {
    navigateEvent () {
      this.$router.push({ name: 'healthy-detail', params: { id: this.point.id } })
    }
  }
}
</script>

<style scoped lang="less">
.point-item{
  width: percentage(700/750);
  margin: 0 auto;
  background: #fff;
  border-radius: 5px;
  display: flex;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0px 0px 17.64px 0.36px rgba(44, 44, 44, 0.09);
  .cover{
    width: 243/2px;
    height: 191/2px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
  }
  .content-box{
    flex: 1;
    width: 0;
    margin-left: 18px;
    position: relative;
    .title-box{
      display: flex;
      .title{
        width: 0;
        flex: 1;
        font-weight: bold;
        color:#353434;
        font-size: 14px;
        line-height: 23px;
        .line-overflow(2);
      }
      .type{
        font-size: 12px;
      }
    }
    .address{
      height: 20*2px;
      color: #636363;
      font-size: 11px;
      line-height: 38/2px;
      .line-overflow(2);
    }
    .time {
      font-size: 11px;
      color: @colorPrimary;
    }
  }
}
</style>
